﻿using System.Windows;
using System.Windows.Shapes;
using Drawer.Common;

namespace Drawer.Shapes
{
    class FPolygon : BaseShape
    {
        public override Shape GetShape()
        {
            Polygon newPolygon = new Polygon();
            newPolygon.Points.Add(new Point(Dimension.Width / 2, 0));
            newPolygon.Points.Add(new Point(0, Dimension.Height));
            newPolygon.Points.Add(new Point(Dimension.Width, Dimension.Height));
            newPolygon.Margin = new Thickness(StartPoint.X, StartPoint.Y, 0, 0);
            newPolygon.Stroke = OutlineColor;
            newPolygon.Fill = FillColor;
            newPolygon.StrokeThickness = StrokeSize;

            return newPolygon;
        }
    }
}
